

package com.nageoffer.shortlink.project.handler;

import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

public class CustomerFallbackHandler {
    public static void restoreUleHandleFallback(String shortUri, ServletRequest request, ServletResponse response, Throwable ex) throws IOException {
        ((HttpServletResponse) response).sendRedirect("/page/fallback");
    }
}
